<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tai-khoan-form',
	'enableAjaxValidation'=>false,
)); ?>
	<fieldset>
		<div class="row">
			<label>Tài khoản</label>
			<?php echo $form->textField($model,'TaiKhoan',array('size'=>50,'maxlength'=>50,'class'=>'text-input small-input')); ?>
			<?php echo $form->error($model,'TaiKhoan', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
	
		<div class="row">
			<label>Mật khẩu</label>
			<?php if ($model->isNewRecord) {
				echo $form->passwordField($model,'MatKhau',array('size'=>32,'maxlength'=>32,'class'=>'text-input small-input'));
			} else {
				echo $form->passwordField($model,'MatKhau',array('size'=>32,'maxlength'=>32,'readonly'=>'readonly','class'=>'text-input small-input'));
				echo "<br/><br/><label>Mật khẩu mới</label>";	
				echo $form->passwordField($model,'MatKhau2',array('size'=>32,'maxlength'=>32,'class'=>'text-input small-input'));
			}
			?>
			<?php echo $form->error($model,'MatKhau', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
		
		<div class="row">
			<label>Email</label>
			<?php echo $form->textField($model,'Email',array('size'=>60,'maxlength'=>100,'class'=>'text-input small-input')); ?>
			<?php echo $form->error($model,'Email', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
	
		<div class="row">
			<?php if ($model->isNewRecord)
			{
				echo $form->checkBox($model,'TrangThai', array('checked'=>true)); 
			}else 
				echo $form->checkBox($model,'TrangThai');?> 
			<b>Hiển thị</b>
		</div><br />
	
		<div class="row buttons">
			<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
		</div>
	</fieldset>
<?php $this->endWidget(); ?>

</div><!-- form -->